package com.etone.smartAudit.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author: sovy
 * @date: 2020/10/28
 * @description: 服务器-软件资源关系
 */

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "f_server_source")
public class ServerSource implements Serializable {
    @TableId(value = "intId", type = IdType.AUTO)
    private Integer id;

    /**
     * 服务器id
     */
    @TableField(value = "intServerId")
    private Integer serverId;

    /**
     * 软件资源id
     */
    @TableField(value = "intItemSourceId")
    private Integer itemSourceId;

    /**
     * 资源版本信息
     */
    @TableField(value = "vcVersion")
    private String version;

    /**
     * 资源端口信息
     */
    @TableField(value = "vcPort")
    private String port;

    /**
     * 总空间大小
     */
    @TableField(value = "douTotal")
    private Double total;

    /**
     * 已使用空间大小
     */
    @TableField(value = "douUsed")
    private Double douUsed;
}